package com.rao.springcloud.service;

import org.springframework.web.bind.annotation.PathVariable;

import java.util.concurrent.TimeUnit;

/**
 * @author mikasafan
 * @create 2021-06-29-19:52
 */
public interface PaymentService {
    /**
     * 正常访问，一切OK
     * @param id
     * @return
     */
    String paymentInfo_OK(Integer id);

    /**
     * 超时访问，演示降级
     * @param id
     * @return
     */
    String paymentInfo_TimeOut(Integer id);

    String paymentCircuitBreaker(Integer id);
}
